package com.mt.repair.dao.repairManagement;

import com.mt.common.core.web.base.PageDTO;
import com.mt.common.core.web.base.PageResultDTO;
import com.mt.repair.entity.repairManagement.RepairOrderStatusRecord;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Component;
import org.apache.ibatis.annotations.Param;
import java.util.List;

@Mapper
@Component(value = "repairOrderStatusRecordDao")
public interface RepairOrderStatusRecordDao {

    /**
    * 根据分页参数查询维修单状态记录集合
    *
    * @param pageDTO 分页条件
    */
    public List<RepairOrderStatusRecord> findRepairOrderStatusRecords(PageDTO pageDTO);

    /**
    * 查询全部维修单状态记录集合
    *
    */
    public List<RepairOrderStatusRecord> findAllRepairOrderStatusRecords();

    /**
    * 查询所有维修单状态记录集合(只提取ID 和 Name)
    *
    */
    public List<RepairOrderStatusRecord> findAllRepairOrderStatusRecordsWithIdName();

    /**
    * 根据名称查询维修单状态记录集合(只提取ID 和 Name)
    *
    * @param repairOrderStatusRecordName 名称
    */
    public List<RepairOrderStatusRecord> findRepairOrderStatusRecordsWithIdNameByName(@Param("repairOrderStatusRecordName") String repairOrderStatusRecordName);

    /**
    * 根据ID查询指定的维修单状态记录(只提取ID 和 Name)
    *
    * @param repairOrderStatusRecordId Id
    */
    public RepairOrderStatusRecord findRepairOrderStatusRecordsWithIdNameById(@Param(" repairOrderStatusRecordId") Long repairOrderStatusRecordId);

    /**
    * 根据分页参数查询维修单状态记录集合的数量
    *
    * @param pageDTO 分页条件
    */
    public Long findRepairOrderStatusRecordTotalCount(PageDTO pageDTO);

    /**
    * 根据ID查询指定的维修单状态记录
    *
    * @param repairOrderStatusRecordId Id
    */
    public RepairOrderStatusRecord findRepairOrderStatusRecord(@Param("repairOrderStatusRecordId") Long repairOrderStatusRecordId);

    /**
    * 根据ID查询指定的维修单状态记录(包含外键)
    *
    * @param repairOrderStatusRecordId Id
    */
    public RepairOrderStatusRecord findRepairOrderStatusRecordWithForeignName(@Param("repairOrderStatusRecordId") Long repairOrderStatusRecordId);

    /**
    * 新增维修单状态记录
    *
    * @param repairOrderStatusRecord 实体对象
    */
    public Long saveRepairOrderStatusRecord(RepairOrderStatusRecord repairOrderStatusRecord);

    /**
    * 更新维修单状态记录
    *
    * @param repairOrderStatusRecord 实体对象
    */
    public Long updateRepairOrderStatusRecord(RepairOrderStatusRecord repairOrderStatusRecord);

    /**
    * 根据ID删除维修单状态记录
    *
    * @param repairOrderStatusRecordId ID
    */
    public Long deleteRepairOrderStatusRecord(@Param("repairOrderStatusRecordId") Long repairOrderStatusRecordId);
}
